﻿<%@ Page Title="" Language="C#" MasterPageFile="~/indexmaster.Master" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="Web_Demo.index" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit.HTMLEditor"
    TagPrefix="cc3" %>

<%@ Register Assembly="Obout.Ajax.UI" Namespace="Obout.Ajax.UI.HTMLEditor" TagPrefix="obout" %>
<%@ Register assembly="Obout.Ajax.UI" namespace="Obout.Ajax.UI.TreeView" tagprefix="obout" %>
<%@ Register assembly="obout_ComboBox" namespace="Obout.ComboBox" tagprefix="cc1" %>
<%@ Register assembly="obout_Interface" namespace="Obout.Interface" tagprefix="cc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">           
    <div id = "content2"

    <table style="height: 480px; position: relative; border-right-style: groove;">
        <tr>
            <td style="width: 25%">

                <div style="height: 480px; position: relative; float: left; border-right-style: groove;">
                     <obout:Tree ID="TreeView1" runat="server" AllowNodeEdit = "true"
                         ontreenodeedited="TreeFolder_TreeNodeEdited" Width="200px" 
                         onselectedtreenodechanged="TreeView1_SelectedTreeNodeChanged">
                     </obout:Tree>
                <asp:ScriptManager ID="ScriptManager1" runat="server">
                </asp:ScriptManager>

                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:DMS_DEMOConnectionString4 %>" 
                    SelectCommand="SELECT [ID_Folder], [Name_Folder], [ID_ParentFolder], [CreatedOnDate], [ModifiedByID], [ModifiedByDate] FROM [DMS_Folder]">
                </asp:SqlDataSource>
                <asp:Label ID="Label1" runat="server" Visible="False"></asp:Label>
                </div>

    

                
            </td>
            <td style="width: 65%">

                <div style="position: relative; float: left" >
                    <asp:TextBox ID="txt_Node" runat="server" ></asp:TextBox>
                    <asp:Button ID="btn_Add" runat="server" onclick="btn_Add_Click" Text="Add" />
                    <asp:Button ID="btn_Rename" runat="server" onclick="btn_Rename_Click" 
                        Text="Rename" />
                    <asp:Button ID="btn_Delete" runat="server" onclick="btn_Delete_Click" 
                        Text="Delete" />
                </div>
                <asp:Button ID="btn_Upload" runat="server" onclick="btn_Upload_Click" 
            Text="Upload" />
                <asp:FileUpload ID="FileUpload1" runat="server" />
                <br />
                <asp:Label ID="lb_status" runat="server" Text="Label" Visible="False"></asp:Label>
                <br />
                <div style="position: relative; float: left; top: 0px; left: 0px;">
<%--                     <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>--%>
                            <div style="position: relative; float: left" >
                                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                                   BorderColor="#336699" BorderStyle="Solid" BorderWidth="2px" 
                                   CellPadding="4" DataKeyNames="ID_Doc"
                                   ForeColor="#333333" onrowcommand="GridView1_RowCommand" AllowPaging="True" 
                                    AllowSorting="True"  onsorting="GridView1_Sorting">                
                                       <Columns>                                        
                                        <asp:BoundField DataField="Name_Doc"  HeaderText="Name" 
                                            SortExpression="Name_Doc" />                                   
                                        <asp:BoundField DataField="Size"  HeaderText="Size" 
                                            SortExpression="Size" />
                                        <asp:BoundField DataField="Extension"  HeaderText="Type" 
                                            SortExpression="Extension" />
                                        <asp:ButtonField ButtonType="button" CommandName="View" 
                                            HeaderText="View" Text="View" />
                                        <asp:ButtonField ButtonType="button" CommandName="Download" 
                                            HeaderText="Download" Text="Download" />
                                        <asp:ButtonField ButtonType="button" CommandName="xoa" 
                                            HeaderText="Delete" Text="Delete" />
                                          <%--<asp:ButtonField ButtonType="Link" CommandName="ViewCategory" 
                                             HeaderText="View Category" Text="View Category" />--%>

                                          <%--<asp:ButtonField ButtonType="Button" CommandName="BuyNow" 
                                             HeaderText="Buy Now" Text="Buy" />--%>
                                          <%--<asp:ButtonField ButtonType="link" CommandName="Name_Doc" 
                                             DataTextField="Name_Doc" HeaderText="Name" 
                                             SortExpression="Name_Doc" />--%>

                                          <%--<asp:ButtonField DataTextField="UnitsInStock" HeaderText="Stock" 
                                             ButtonType="button" DataTextFormatString="{0} Items" 
                                             CommandName="Stock" />--%>        
                                       </Columns>                
                                </asp:GridView>
                            </div>
<%--                        </ContentTemplate>
                    </asp:UpdatePanel>--%>
                </div>
                <div style="position: relative; float: left; left: 0px;">
                    <br />
                    <br />
            <cc3:Editor ID="Editor1" runat="server" Visible="False" />
                </div>
            </td>
            
        </tr>
    </table>
        <asp:LinqDataSource ID="LinqDataSource1" runat="server">
        </asp:LinqDataSource>
        <br />
        <br />

                
        <br />


                
    </div>
</asp:Content>
<asp:Content ID="Content3" runat="server" 
    contentplaceholderid="ContentPlaceHolder2">
        <div style="position: relative; float: left">
        <asp:Menu ID="Menu1" runat="server" BackColor="#B5C7DE" 
            DynamicHorizontalOffset="2" Font-Names="Verdana" Font-Size="0.8em" 
            ForeColor="#284E98" Orientation="Horizontal" StaticSubMenuIndent="10px">
            <DynamicHoverStyle BackColor="#284E98" ForeColor="White" />
            <DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
            <DynamicMenuStyle BackColor="#B5C7DE" />
            <DynamicSelectedStyle BackColor="#507CD1" />
            <Items>
                <asp:MenuItem Text="HomePage" Value="sdfasf" NavigateUrl="~/index.aspx"></asp:MenuItem>
                <asp:MenuItem Text="Document" Value="New Item">
                    <asp:MenuItem Text="MyDocument" Value="MyDocument"></asp:MenuItem>
                </asp:MenuItem>
                <asp:MenuItem Text="User" Value="User">
                    <asp:MenuItem NavigateUrl="~/AccountSetting.aspx" Text="Account Setting" 
                        Value="Account Setting"></asp:MenuItem>
                </asp:MenuItem>
                <asp:MenuItem Text="Manage" Value="Manage">
                    <asp:MenuItem NavigateUrl="~/UserInformation.aspx" Text="User Information" 
                        Value="User Information"></asp:MenuItem>
                </asp:MenuItem>
            </Items>
            <StaticHoverStyle BackColor="#284E98" ForeColor="White" />
            <StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
            <StaticSelectedStyle BackColor="#507CD1" />
        </asp:Menu>
        </div>
        <div style="position: relative; float: right">
            
            
        <asp:Label ID = "lbUser" runat = "server"></asp:Label>
        <asp:LinkButton ID = "lbtlogout" runat="server" onclick="lbtlogout_Click">Log Out</asp:LinkButton>
        
        </div>
		</asp:Content>

